package sac.vista.maestros;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.DefaultComboBoxModel;

public class registrarAnimal extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					registrarAnimal frame = new registrarAnimal();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public registrarAnimal() {
		setTitle("Registrar Animal");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 377, 371);
		contentPane = new JPanel();
		contentPane.setBackground(new Color(0, 204, 255));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBackground(new Color(255, 255, 255));
		panel.setBounds(10, 11, 341, 315);
		contentPane.add(panel);
		panel.setLayout(null);
		
		JComboBox cmbTipoAnimal = new JComboBox();
		cmbTipoAnimal.setBounds(122, 22, 128, 20);
		panel.add(cmbTipoAnimal);
		
		JLabel lblTipoDeAnimal = new JLabel("Tipo de Animal:");
		lblTipoDeAnimal.setBounds(27, 25, 85, 14);
		panel.add(lblTipoDeAnimal);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
		panel_1.setBackground(Color.WHITE);
		panel_1.setBounds(27, 53, 288, 211);
		panel.add(panel_1);
		panel_1.setLayout(null);
		
		JLabel lblRaza = new JLabel("Raza:");
		lblRaza.setBounds(65, 47, 28, 14);
		panel_1.add(lblRaza);
		
		JLabel lblSexo = new JLabel("Sexo:");
		lblSexo.setBounds(65, 72, 46, 14);
		panel_1.add(lblSexo);
		
		JLabel lblPeso = new JLabel("Peso:");
		lblPeso.setBounds(65, 105, 46, 14);
		panel_1.add(lblPeso);
		
		JLabel lblFechaNacimiento = new JLabel("Fecha Nacimiento:");
		lblFechaNacimiento.setBounds(10, 129, 95, 14);
		panel_1.add(lblFechaNacimiento);
		
		JLabel lblFechaDeMuerte = new JLabel("Fecha de Muerte:");
		lblFechaDeMuerte.setBounds(16, 167, 95, 14);
		panel_1.add(lblFechaDeMuerte);
		
		textField = new JTextField();
		textField.setBounds(103, 44, 155, 20);
		panel_1.add(textField);
		textField.setColumns(10);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"", "Hembra", "Macho"}));
		comboBox.setBounds(103, 69, 155, 20);
		panel_1.add(comboBox);
		
		textField_1 = new JTextField();
		textField_1.setBounds(103, 102, 155, 20);
		panel_1.add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setBounds(103, 130, 155, 20);
		panel_1.add(textField_2);
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		textField_3.setBounds(103, 164, 155, 20);
		panel_1.add(textField_3);
		textField_3.setColumns(10);
		
		JLabel lblNombrenumero = new JLabel("Nombre/Numero:");
		lblNombrenumero.setBounds(10, 22, 87, 14);
		panel_1.add(lblNombrenumero);
		
		textField_4 = new JTextField();
		textField_4.setBounds(103, 19, 155, 20);
		panel_1.add(textField_4);
		textField_4.setColumns(10);
		
		JButton btnGuardar = new JButton("Guardar");
		btnGuardar.setBounds(226, 275, 89, 23);
		panel.add(btnGuardar);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.setBounds(127, 275, 89, 23);
		panel.add(btnCancelar);
		
		JButton btnEliminar = new JButton("Eliminar");
		btnEliminar.setBounds(27, 275, 89, 23);
		panel.add(btnEliminar);
	}
}
